﻿namespace Cache.Aop.Attributes
{
    /// <summary>
    /// 缓存特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, Inherited = true)]
    public class CachingAttribute : Attribute
    {
        /// <summary>
        /// 过期时间(分钟)
        /// </summary>
        public int AbsoluteExpiration { get; set; }
        /// <summary>
        /// 自定义key
        /// </summary>
        public string CustomKeyValue { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
}
